package com.scwatch.core.domain;

import com.scwatch.common.web.Anchor;

import javax.persistence.*;

/**
 * SpecialComment
 * 
 * @author gjl
 * 
 */
@Entity
@DiscriminatorValue("Special")
public class SpecialComment extends Comment {
	private static final long serialVersionUID = 1433224L;

	@Override
	@Transient
	public Anchor getAnchor() {
		return special;
	}

	private Special special;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "f_fid", nullable = false, insertable = false, updatable = false)
	public Special getSpecial() {
		return special;
	}
	public void setSpecial(Special special) {
		this.special = special;
	}
}
